﻿<%@ Page Language="C#" MasterPageFile="~/App_Layouts/Default.master" Title="Bez panike | Registracija" CodeFile="Register.aspx.cs" Inherits="Register_aspx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="server">

    <div class="page" id="regular">

            <h3>Registracija naloga</h3>
            <p></p>
            <asp:TextBox ID="tbKorisnickoIme" CssClass="textbox" runat="server"></asp:TextBox>&nbsp;
            <asp:Label ID="lblKorisnickoIme" runat="server" CssClass="label" Text="Korisnicko ime"></asp:Label><br />
            <asp:RequiredFieldValidator ID="KorisnickoImeObavezno" runat="server" ControlToValidate="tbKorisnickoIme" ErrorMessage="Korisnicko ime je obavezeno"></asp:RequiredFieldValidator><br />
            
            <asp:TextBox ID="tbLozinka" CssClass="textbox" runat="server" TextMode="Password"></asp:TextBox>&nbsp;
            <asp:Label ID="lblLozinka" runat="server" CssClass="label" Text="Lozinka"></asp:Label><br />
            <asp:RequiredFieldValidator ID="LozinkaObavezna" runat="server" ControlToValidate="tbLozinka" ErrorMessage="Lozinka je obavezena"></asp:RequiredFieldValidator><br />
            
            <asp:TextBox ID="tbPotvrdaLozinke" CssClass="textbox" TextMode="Password" runat="server"></asp:TextBox>&nbsp;
            <asp:Label ID="lblPotvrdaLozinke" runat="server" CssClass="label" Text="Potvrda lozinke"></asp:Label><br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbPotvrdaLozinke" ErrorMessage="Potvrda lozinke je obavezena"></asp:RequiredFieldValidator><br />
            
            <asp:TextBox ID="tbIme" CssClass="textbox" runat="server"></asp:TextBox>&nbsp;
            <asp:Label ID="lblIme" runat="server" CssClass="label" Text="Ime"></asp:Label><br />
            <asp:RequiredFieldValidator ID="ImeObavezno" runat="server" ControlToValidate="tbIme" ErrorMessage="Ime je obavezeno"></asp:RequiredFieldValidator><br />
            
            <asp:TextBox ID="tbPrezime" CssClass="textbox" runat="server"></asp:TextBox>&nbsp;
            <asp:Label ID="lblPrezime" runat="server" CssClass="label" Text="Prezime"></asp:Label><br />
            <asp:RequiredFieldValidator ID="PrezimeObavezno" runat="server" ControlToValidate="tbPrezime" ErrorMessage="Prezime je obavezeno"></asp:RequiredFieldValidator><br />
            
            <asp:TextBox ID="tbEmail" CssClass="textbox" runat="server"></asp:TextBox>&nbsp;
            <asp:Label ID="lblEmail" runat="server" CssClass="label" Text="Email"></asp:Label><br />
            <asp:RequiredFieldValidator ID="EmailObavezan" runat="server" ControlToValidate="tbEmail" ErrorMessage="Email je obavezan"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="emailRegexVal" ControlToValidate="tbEmail" ErrorMessage="Email nije u ispravnom formatu." Display="Static" ValidationExpression="[a-z0-9_-]+(\.[a-z0-9_-]+)*@[a-z0-9_-]+(\.[a-z0-9_-]+)+" runat="server"></asp:RegularExpressionValidator><br />
            <br />
            <asp:ImageButton ID="ibtnRegistruj" CssClass="button" OnClick="Register_OnClick" ImageUrl="~/App_Themes/White/Images/button-create.gif" runat="server" AlternateText="Napravi novi nalog" SkinID="create" />
		    <p><asp:Label runat="server" id="lblStatusText"	enableviewstate="False"></asp:Label></p>
            
    </div>

</asp:Content>